package com.cgx.entity.User;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

/**
 * @author chenguanxin
 * @date 2021-05-09 22:17
 */
@Data
@Document(collection = "user")
public class User implements Serializable {
    @Id
    @Field("id")
    private String id;
    @Field("user_id")
    private String userId;
    @Field("login_name")
    private String loginName;
    @Field("phone")
    private String phone;
    @Field("password")
    private String password;
    @Field("create_by")
    private String createBy;
    @Field("create_time")
    private Date createTime;
    @Field("update_by")
    private String updateBy;
    @Field("update_time")
    private Date updateTime;
    @Field("is_delete")
    private Integer isDelete;
}
